<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld"  prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld"  prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>

<%@ page  import="java.util.*" %>
<%@ page  import="com.erp.framework.util.CommonUtil" %>
<%@ page  import="com.erp.app.common.ProjectConstants" %>

<jsp:useBean id="remarkTextForm" scope="session" type="com.erp.common.web.RemarkTextForm" />

<%
HashMap params = remarkTextForm.getParams();
String title1 = CommonUtil.nullToString((String) request.getParameter("title1"));
String value1 = CommonUtil.nullToString((String) request.getParameter("value1"));
String title2 = CommonUtil.nullToString((String) request.getParameter("title2"));
String value2 = CommonUtil.nullToString((String) request.getParameter("value2"));
String remarkTitle = CommonUtil.nullToString((String) request.getParameter("remarkTitle"));
String remark = CommonUtil.nullToString((String) request.getParameter("remark"));
%>

<head>
<title>View Remark</title>
<link rel="stylesheet" href="<%=request.getContextPath()+ "/css/style.css" %>" type="text/css">

<script language="javascript">
<!--
function doLoad() {
	window.resizeTo(750, 550);
	window.moveTo(0, 0);
}
-->
</script>
</head>
<body onLoad="javascript:doLoad();" bgcolor="#ffffff">

<html:form action="/remarkText">
<html:hidden property="pageEvent" />
<html:hidden property="pageMode" />

<table bgcolor="#E0E6E7" border=1 bordercolor="#C1C1C1" cellpadding=0 cellspacing=0 width=100%>
<% if(!CommonUtil.isEmpty(title1)){ %>
	<tr valign="top">
		<td bgcolor="#637ACB" class="col_label"><%=title1%></td>
		<td class="t2"><%= value1 %></td>
	</tr>
<% } %>
<% if(!CommonUtil.isEmpty(title2)){ %>
	<tr valign="top">
		<td bgcolor="#637ACB" class="col_label"><%=title2%></td>
		<td class="t2"><%= value2 %></td>
	</tr>
<% } %>
<tr valign="top">
    <td bgcolor="#637ACB"></td>
    <td>
    <input name="btn_close" type="button" value="Close Window" onClick="javascript:window.close();" class="bb">
    </td>
</tr>
<tr valign="top">
     <td bgcolor="#637ACB" class="col_label">
		<%=remarkTitle%>
	 </td>
     <td>
		<textarea rows="30" cols="80" styleClass="t2" readonly><%=remark%></textarea>
	 </td>
</tr>
</table>
</html:form>
</body>
